package org.nbict.iot.protocol;

import com.greenpineyu.fel.FelEngine;
import com.greenpineyu.fel.FelEngineImpl;

/**
 * Created by songseven on 18/6/11.
 */
public enum ExpressionEngine {

    ENGINE;
    private FelEngine instance;

    ExpressionEngine() {
        instance = new FelEngineImpl();
    }

    public FelEngine getInstance() {
        return instance;
    }

//    private ScriptEngine instance;
//
//    ExpressionEngine() {
//        ScriptEngineManager manager = new ScriptEngineManager();
//        instance = manager.getEngineByName("javascript");
//    }
//
//    public ScriptEngine getInstance() {
//        return instance;
//    }
}
